/*
 * @(#)LotusDominoFolderImpl.java
 *
 * Copyright (c) 2005 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */

package com.dcivision.mail.bean;

import lotus.domino.Database;

/**
  LotusDominoFolderImpl.java

  This class is the serializable bean reflecting business logic uses.

    @author           Beyond Qu
    @company          DCIVision Limited
    @creation date    08/06/2005
    @version          $Revision: 1.2 $
*/
public class LotusDominoFolderImpl implements EmailFolder  {
    
  Database databaseObject = null;  
  
  public LotusDominoFolderImpl(Database dbObj) {
    this.databaseObject = dbObj;
  }
  
  public void open(int arg) throws Exception {
    if (!isOpen()) {
      this.databaseObject.open();
    }
  }
  
  public void close(boolean flag) throws Exception {
    this.databaseObject.recycle();
  } 
  
  public boolean isOpen() throws Exception {
    return this.databaseObject.isOpen();  
  }

}
